<?php
/**
 * @package system
 * @subpackage layout
 */
	$pageClass = (isset($pageClass) && $pageClass != '')?$pageClass:"";
	$IsLoggedIn = false;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<?php include_metas() ?>
	<?php include_http_metas() ?>
    <?php include_title() ?>
    <script type="text/javascript">
      var base_url_no_script = "<?php echo $sf_context->getRequest()->getUriPrefix().'/' ?>";
      var base_url = base_url_no_script;
    </script>
	<title>Essay Library</title>
	<?php use_javascript('extlibs/jquery') ?>
	<?php use_javascript('extlibs/jquery.form.js') ?>
	<?php use_javascript('extlibs/jquery.ui.js') ?>
	<?php use_javascript('extlibs/jquery.scrollTo.js') ?>
    <?php use_javascript('extlibs/jgrowl/jquery.jgrowl.js'); ?>
    <?php use_javascript('extlibs/jquery.jsrepeater.js'); ?>
    <?php use_javascript('gradua/ria.js'); ?>
    <?php use_javascript('gradua/ria.buildItem.js'); ?>
    <?php use_javascript('gradua/ria.buildList.js'); ?>
    <?php use_javascript('gradua/ria.formatter.js'); ?>
    <?php use_javascript('gradua/ria.extraCommands.js'); ?>
	<?php use_javascript('clearleft/global') ?>
	<?php use_javascript('clearleft/addSizes') ?>
	<?php use_javascript('gradua/HtmlUtil') ?>
	<?php use_javascript('gradua/UtilC') ?>
	<?php use_javascript('gradua/UtilCb') ?>
	<?php use_javascript('gradua/JsonC'); ?>
    <?php use_javascript('gradua/dev'); ?>
    <?php use_javascript('gradua/clone'); ?>
    <?php use_javascript('auth'); ?>
    <?php use_javascript('header'); ?>
    <?php use_javascript('mainMenu'); ?>
    <?php use_javascript('extraMenu'); ?>
    <?php use_javascript('cards'); ?>
</head>
<style>
.content{
    padding:20px 40px 10px 50px;
    background-color:#eee;
}
</style>
<?php use_helper('Php2Js') ?>
<body <?php if (isset($pageClass) && $pageClass != '') {echo 'class="'; echo $pageClass; echo '"';}?> >
<div id='header'>
    <h3>
      PHPTasks - <?php echo sfConfig::get('sf_environment'); ?>
      <span id='projectName'></span>
    </h3>
    <?php include_component('globalPartials','nav') ?>
    <hr/>
    <div id='feedback'>
    <?php if($sf_user->hasFlash('feedback')):?>
    <?php echo $sf_user->getFlash('feedback'); ?>
    <?php endif; ?>
    </div>
    <hr/>
    <?php include_slot('context_menu'); ?>
    <hr/>

    <table width="100%">
        <tr>
            <td>
                <div id='breadcrumbs' style='padding:3px;'></div>
            </td>
            <td align="right">
                <div style='text-align:right;color:#336;' route='DownMenuR'>
                    <span id='general-loading' style='display:none'><image id='alg' src='/images/ajax_loading.gif'/></span>
                    Estimated Backlog:<span id='estimated-backlog'>
                    <?php echo DevTaskTable::sumEstimatedBacklogPoints() ?>
                    </span>
                    <a href='javascript:void(0)' onclick='cards.showPrintCardsFilter()'>
                    print cards
                    </a>
                    |
                    <a href="javascript:void(0)" onclick='extraMenu.showSettings();'>
                    Settings
                    </a>
                    <span id='big-feedback'></span>
                </div>
            </td>
        </tr>


    </table>
    

    

</div>
<div class='content'>
    <?php echo $sf_content ?>
</div>
</body>
</html>